package net.huashitong.ssydt.provider.common.service;

import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.common.entity.SsCommonMapping;
import net.huashitong.ssydt.provider.common.mapper.SsCommonMappingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.11.21
 */
@Service
@Transactional
public class SsCommonMappingServiceImpl extends AbstractLongService<SsCommonMapping> implements SsCommonMappingService {

    private SsCommonMappingMapper mapper;

    @Autowired
    public SsCommonMappingServiceImpl(SsCommonMappingMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsCommonMapping> getLongMapper() {
        return this.mapper;
    }


    @Override
    public SsCommonMapping getByUuid(String uuid) {
        return this.mapper.getByUuid(uuid);
    }
}
